<!-- src/views/Home.vue -->
<template>
  <div>
    <router-link to="/">首页</router-link>
    <router-link :to="{ name: 'User', params: { id: 123 }}">用户页</router-link>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'HomePage' // 修改为多单词命名
}
</script>